package mailbox

import (
	"com.lh.mail.service/pb/mailbox"
	"context"
)

type SmtpConfig struct {
	Host     string
	port     int
	username string
	password string
	from     string
}

type Mailbox struct {
	mailbox.UnimplementedMailboxServiceServer
	smtpConfig *SmtpConfig
	isUser     bool // 判断用户类型，false平台用户，true第三方用户
}

// 用户第三登录
func (mail *Mailbox) Login(ctx context.Context, req *mailbox.LoginRequest) (*mailbox.NoResponse, error) {
	return &mailbox.NoResponse{}, nil
}

// 用户第三方授权
func (mail *Mailbox) Auth(ctx context.Context, req *mailbox.AuthRequest) (*mailbox.AuthResponse, error) {
	return &mailbox.AuthResponse{}, nil
}
